package cool.tsy.emos.wx.config.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author: hongxuan.wang
 * @date: Created in 2021/9/25 17:40
 * @description: shiro 框架的认证对象（token的封装）
 * @mail: 1443424326@qq.com
 */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
